package com.pzhu.user.message.producer;

import com.pzhu.user.message.TopicConstants;
import lombok.RequiredArgsConstructor;
import org.springframework.kafka.core.KafkaTemplate;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ChangeMessageProducer {

    private final KafkaTemplate<String, String> kafkaTemplate;

    public void sendMessage(String message) {
        kafkaTemplate.send(TopicConstants.CHANGE_PASS_WORD, message);
    }
}
